home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
Think C dcmd 1.0 ƒ
/
Think Put Lib source
/
PutCStrTo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-13
|
366b
|
21 lines
extern unsigned char buffer[256];
extern short mark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutCStrTo(const char* s, int endpos)
{
int i = 0;
if ( endpos > mark )
{
while ( s[i] && mark < endpos )
PutChar( s[i++] );
if ( s[i] )
buffer[mark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}